Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test with Python 3.13 #61

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Test with Python 3.13 #61

wants to merge 3 commits into from

Conversation

jan-janssen
Copy link
Member

@jan-janssen jan-janssen commented Jan 8, 2025

Summary by CodeRabbit

  • Chores
    • Updated GitHub Actions workflow to use Python 3.13 for macOS, Ubuntu, and Windows testing environments
    • Updated Conda version from 24.7.1 to 24.11.2
    • Updated executorlib package version from 0.0.5 to 0.0.7

Copy link
Contributor

coderabbitai bot commented Jan 8, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

The pull request updates the GitHub Actions workflow for unit testing by upgrading Python versions across macOS, Ubuntu, and Windows jobs from version 3.12 to 3.13. The workflow configuration also includes updates to Conda, bumping its version from 24.7.1 to 24.11.2, and upgrading the executorlib package from version 0.0.5 to 0.0.7. These changes aim to ensure compatibility and potentially leverage new features in the latest Python release.

Changes

File Change Summary
.github/workflows/unittests.yml - Updated Python version to 3.13 for macOS and Ubuntu jobs
- Added Python 3.13 for Windows job
- Updated Conda version from 24.7.1 to 24.11.2
- Updated executorlib package from 0.0.5 to 0.0.7

Poem

🐰 Hop, hop, testing we go!
Python 3.13, watch our code flow
Conda and libs, all shiny and new
Workflows dancing, tests breaking through
Rabbit's delight, versions take flight! 🚀


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@jan-janssen jan-janssen marked this pull request as draft January 8, 2025 08:04
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1e13371 and ef67439.

📒 Files selected for processing (1)
  • .github/workflows/unittests.yml (2 hunks)
🔇 Additional comments (1)
.github/workflows/unittests.yml (1)

Line range hint 1-60: Overall workflow structure is good, but needs critical fixes.

The workflow has good practices:

  • Multi-OS testing
  • Wide Python version coverage
  • Appropriate timeouts and channels

However, please address the critical issues mentioned above regarding Python version mismatches and environment setup before merging.

@@ -48,7 +51,7 @@ jobs:
run: |
pip install versioneer[toml]==0.29
pip install . --no-deps --no-build-isolation
conda create -y -n py312 python=3.12.1 conda=24.7.1 executorlib=0.0.5
conda create -y -n py312 python=3.12.1 conda=24.11.2 executorlib=0.0.7
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Critical: Fix Python version mismatch in Conda environment.

There are several issues with the Conda environment setup:

  1. The environment uses Python 3.12.1 while testing Python 3.13, which could lead to inconsistent results
  2. The environment creation happens after the main package installation
  3. The environment setup is duplicating the installation steps

Consider this alternative approach:

-        conda create -y -n py312 python=3.12.1 conda=24.11.2 executorlib=0.0.7
+        conda create -y -n pyenv python=${{ matrix.python-version }} conda=24.11.2 executorlib=0.0.7
-        conda activate py312
+        conda activate pyenv
         pip install versioneer[toml]==0.29
         pip install . --no-deps --no-build-isolation
         conda deactivate

Committable suggestion skipped: line range outside the PR's diff.

Comment on lines +17 to +24
python-version: '3.13'

- operating-system: ubuntu-latest
python-version: '3.12'
python-version: '3.13'

- operating-system: windows-latest
python-version: '3.13'

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

Update Python version support metadata before adding 3.13 tests

The package metadata in pyproject.toml needs to be updated before adding Python 3.13 tests:

  • Add "Programming Language :: Python :: 3.13" to the classifiers
  • Verify that conda==24.11.2 and executorlib==0.0.7 support Python 3.13
  • Consider marking Python 3.13 jobs as experimental using continue-on-error: true
🔗 Analysis chain

Verify Python 3.13 compatibility and update documentation.

Adding Python 3.13 testing is forward-thinking, but since Python 3.13 is still in development:

  1. Ensure all dependencies support Python 3.13
  2. Document any known compatibility issues or limitations
  3. Consider marking these jobs as experimental/allowed to fail

Let's check the package compatibility:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if Python package dependencies specify Python 3.13 support
for file in setup.py setup.cfg pyproject.toml; do
  if [ -f "$file" ]; then
    echo "=== $file ==="
    cat "$file"
  fi
done

Length of output: 1818

Update test environment (#62)
@jan-janssen
Copy link
Member Author

  Could not solve for environment specs
  The following packages are incompatible
  ├─ conda 24.11.2**  is installable with the potential options
  │  ├─ conda 24.11.2 would require
  │  │  └─ python >=3.10,<3.11.0a0 , which can be installed;
  │  ├─ conda 24.11.2 would require
  │  │  └─ python >=3.11,<3.12.0a0 , which can be installed;
  │  ├─ conda 24.11.2 would require
  │  │  └─ python_abi 3.12.* *_cp312, which requires
  │  │     └─ python 3.12.* *_cpython, which can be installed;
  │  └─ conda 24.11.2 would require
  │     └─ python >=3.9,<3.10.0a0 , which can be installed;
  └─ python 3.13**  is not installable because there are no viable options
     ├─ python [3.13.0|3.13.1] conflicts with any installable versions previously reported;
     └─ python [3.13.0rc1|3.13.0rc2|3.13.0rc3] would require
        └─ _python_rc, which does not exist (perhaps a missing channel).

@jan-janssen
Copy link
Member Author

Waiting for conda-forge/conda-feedstock#249

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant